<div class="form-box" id="login-box">
    <?php if ($this->session->flashdata('ERROR')) { ?>
        <div class="alert alert-danger alert-dismissable">
            <i class="fa fa-ban"></i>
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
            <b>提示!</b>
            <?php echo $this->session->flashdata('ERROR'); ?>
        </div>
    <?php } ?>
    <?php if ($this->session->flashdata('SUCCESS')) { ?>
        <div class="alert alert-success alert-dismissable">
            <i class="fa fa-check"></i>
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
            <b>提示!</b>
            <?php echo $this->session->flashdata('SUCCESS'); ?>
        </div>
    <?php } ?>

    <div class="header">登陆后台</div>
    <?php echo form_open('', 'accept-charset="UTF-8" role="form"'); ?>
    <div class="body bg-gray">
        <?php $email_msg = form_error('email', FALSE, FALSE); ?>
        <div class="form-group<?php echo($email_msg ? ' has-error' : '') ?>">
            <input class="form-control" placeholder="E-mail" name="email"
                   value="<?php echo set_value('email') ?>" type="text">

            <p class="help-block"><?php echo $email_msg; ?></p>
        </div>
        <?php $password_msg = form_error('password', FALSE, FALSE); ?>
        <div class="form-group<?php echo($password_msg ? ' has-error' : '') ?>">
            <input class="form-control" placeholder="Password" name="password" type="password" value="">

            <p class="help-block"><?php echo $password_msg; ?></p>
        </div>
        <div class="form-group">
            <input type="checkbox" name="remember_me"/> 记住我
        </div>
    </div>
    <div class="footer">
        <button type="submit" class="btn bg-olive btn-block">马上登陆</button>

        © 2020. All Rights Reserved.

        <br/>
        Created By: 我很正经  <span class="pull-right"><a href="<?php echo base_url(); ?>"><i class="fa fa-arrow-left"></i> 返回首页</a></span>

    </div>
    <?php echo form_close(); ?>

</div>
